package com.guoranhao.business.dao;

import com.guoranhao.business.model.EsSpu;
import com.guoranhao.business.model.EsSpuExample;
import com.guoranhao.business.vo.EsSpuVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EsSpuMapper extends BaseMapper<EsSpu, EsSpuExample> {


    /**
     * Description: 查询购物车列表 <br/>
     * Version V1.0  2019-8-28 18:59  by 秦涛   (qintao@cloud-young.com) 创建
     * @param openId 用户id
     * @return 购物车列表
     */
    List<EsSpuVo> getShoppingCartList(@Param("openId") String openId);

    /**
     * Description:  查询购物车数量<br/>
     * Version V1.0  2019-8-28 18:59  by 秦涛   (qintao@cloud-young.com) 创建
     * @param openId 用户id
     * @return 数量
     */
    Integer getShoppingCartCount(@Param("openId") String openId);
}